package gov.pbc.nn.uflo.menu;

import gov.pbc.nn.core.bdf.AbstractMenuGenerator;

import java.util.ArrayList;
import java.util.List;

import org.springframework.stereotype.Component;

import com.bstek.bdf2.core.model.Url;

@Component
public class PbcUfloMenuGenerator extends AbstractMenuGenerator {

	@Override
	public List<Url> getUrls(String rootId) {
		List<Url> urls = new ArrayList<Url>();
		Url secondUrl = createUrl("UFLO流程管理", "dorado/res/uflo/icons/uflo-logo16.png", rootId, 20, null);
		urls.add(secondUrl);
	    Url childUrl = createUrl("流程监控与测试", "url(skin>common/icons.gif) -102px -21px", secondUrl.getId(), 1, "com.bstek.uflo.console.view.ProcessMaintain.d");
	    urls.add(childUrl);
//	    Url childUrl2 = createUrl("节假日设定", "url(skin>common/icons.gif) -102px -42px", secondUrl.getId(), 3, "com.bstek.uflo.console.view.CalendarMaintain.d");
//	    urls.add(childUrl2);
//	    Url childUrl3 = createUrl("表信息定义", "url(>skin>common/icons.gif) -202px -142px", secondUrl.getId(), 4, "com.bstek.uflo.form.view.table.TableMaintain.d");
//	    urls.add(childUrl3);
//	    Url childUrl4 = createUrl("表单定义", "url(>skin>common/icons.gif) -42px -121px", secondUrl.getId(), 5, "com.bstek.uflo.form.view.form.FormMaintain.d");
//	    urls.add(childUrl4);
//	    Url childUrl5 = createUrl("开始流程", "url(>skin>common/icons.gif) -182px -121px", secondUrl.getId(), 6, "com.bstek.uflo.form.view.process.ProcessList.d");
//	    urls.add(childUrl5);
	    Url childUrl6 = createUrl("模版在线设计", "url(>skin>common/icons.gif) -262px -141px", secondUrl.getId(), 8, "com.bstek.uflo.designer.view.UfloDesignerMaintain.d");
	    urls.add(childUrl6);
//	    Url childUrl7 = createUrl("流程设计器权限方案", "url(>skin>common/icons.gif) -182px -22px", secondUrl.getId(), 7, "com.bstek.uflo.designer.view.security.UfloProcessSecurityAttributeMaintain.d");
//	    urls.add(childUrl7);
//	    Url childUrl8 = createUrl("流程设计器权限分配", "url(>skin>common/icons.gif) -182px -182px", secondUrl.getId(), 9, "com.bstek.uflo.designer.view.security.UfloProcessSecurityAssigneeMaintain.d");
//	    urls.add(childUrl8);
//	    Url childUrl9 = createUrl("表单数据查询", "url(>skin>common/icons.gif) -22px -41px", secondUrl.getId(), 10, "com.bstek.uflo.form.view.table.DataAnalysis.d");
//	    urls.add(childUrl9);
	    Url childUrl20 = createUrl("代理方案管理", "url(>skin>common/icons.gif) -100px -60px", secondUrl.getId(), 11, "gov.pbc.nn.uflo.view.ProxyMaintain.d");
	    urls.add(childUrl20);
//	    Url childUrl21 = createUrl("待办任务", "url(>skin>common/icons.gif) -200px -0px", secondUrl.getId(), 12, "bdf2.uflo.proxy.view.TodoTaskMaintain1.d");
//	    urls.add(childUrl21);
//	    Url childUrl22 = createUrl("待办任务", "url(>skin>common/icons.gif) -200px -0px", secondUrl.getId(), 13, "gov.pbc.nn.uflo.view.TodoTaskMaintain.d");
//	    urls.add(childUrl22);
	    Url childUr23 = createUrl("全局常用意见", "url(>skin>common/icons.gif) -260px -100px", secondUrl.getId(), 8, "gov.pbc.nn.uflo.view.CommonOpinion.d");
	    urls.add(childUr23);
		return urls;
	}

}
